package com.ruoyi.user.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 乘客管理对象 trip_user
 *
 * @author trip
 * @date 2024-09-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("trip_user")
public class TripUser extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;
    /**
     * 账号
     */
    @Excel(name = "账号")
    private String username;
    /**
     * 密码
     */
    @Excel(name = "密码")
    private String password;
    /**
     * 昵称
     */
    @Excel(name = "昵称")
    private String nickName;
    /**
     * 电话
     */
    @Excel(name = "电话")
    private String phone;
    /**
     * 邮箱
     */
    @Excel(name = "邮箱")
    private String email;
    /**
     * 头像
     */
    @Excel(name = "头像")
    private String avatar;
    /**
     * 0-男；1-女；其他无性别
     */
    @Excel(name = "0-男；1-女；其他无性别")
    private Long sex;
    /**
     * 紧急联系人
     */
    @Excel(name = "紧急联系人")
    private String emergencyPerson;
    /**
     * 紧急联系电话
     */
    @Excel(name = "紧急联系电话")
    private String emergencyPhone;
    /**
     * 状态（0正常 1停用）
     */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;
    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @TableLogic
    private String delFlag;
}


